package com.nfit.shopmodel.entity.cart;

import com.fasterxml.jackson.databind.ser.Serializers;
import com.nfit.shopmodel.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * ClassName:CartItem
 * Package:com.nfit.shopmodel.entity.cart
 * Description
 *
 * @Author L
 * @Create 2025/1/1 13:22m
 */
@Schema(description = "购物车实体")
@Data
public class CartItem extends BaseEntity {

    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "商品skuId")
    private Long skuId;
    @Schema(description = "商品Id")
    private Long productId;
    @Schema(description = "商品sku 名称")
    private String skuName;
    @Schema(description = "商品spec")
    private String specValue;
    @Schema(description = "商品缩略图")
    private String thumbImg;
    @Schema(description = "商品价格")
    private BigDecimal skuPrice;
    @Schema(description = "商品购买数量")
    private Integer skuCount;
    @Schema(description = "商品sku库存总数量")
    private Integer skuStock;
    @Schema(description = "是否勾选（0->未勾选，1->已勾选）")
    private Integer checked;



}
